package org.zxp.designpattern.chain;

/**
 * @program: effectiveJava
 * @description: 是5的整数倍拦截
 * @author: X-Pacific zhang
 * @create: 2019-08-29 15:28
 **/
public class Intercept1 extends AbstractIntercept {
    @Override
    boolean check(int a) {
        if (a % 10 == 0)
            return false;
        System.out.println(a+"通过Intercept1检查");
        return true;
    }
}
